﻿<p>
    This example shows how to use a custom toolbar command in Telerik Grid for ASP.NET
    MVC. Custom commands can be configured to call action methods. In this particular
    example the custom command is exporting the grid data to CSV (comma separated values)
    format which can be easily open with Microsoft Excel. If you want, you can
    <a href="http://www.telerik.com/support/kb/aspnet-mvc/grid/export-to-excel.aspx">export to XLS format</a>
    (binary Excel), too.
</p>
<p>
    To define a custom command use the following code
</p>
<pre class="prettyprint">
&lt;%= Html.Telerik().Grid(Model)
        .Name("Grid")
        .ToolBar(commands =&gt; commands
           <em>.Custom() .Text("Export to CSV") .Action("Action", "Controller")</em>
        )
%&gt;
</pre>
